package kubayaxi.video.service.base.common.enums;

import lombok.Getter;

@Getter
public enum FollowStatusEnum {
    FOLLOWED(20,"已关注"),
    NO_FOLLOW(21,"未关注");

    private Integer code;
    private String description;

    FollowStatusEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    public static FollowStatusEnum getByCode(Integer code) {
        for (FollowStatusEnum value : FollowStatusEnum.values()) {
            if (value.getCode().equals(code)) return value;
        }
        return null;
    }


}
